import {Pipe, PipeTransform} from '@angular/core';
import {Artifact} from '../entity/artifact';

@Pipe({
    name: 'dubboDependencyMaven'
})
export class DubboDependencyMavenPipe implements PipeTransform {

    transform(artifact: Artifact, args?: any): any {
        return `\`\`\`xml
<dependency>
    <groupId>${artifact.groupId}</groupId>
    <artifactId>${artifact.artifactId}</artifactId>
    <version>${artifact.version}</version>
</dependency>
\`\`\`
`;
    }

}
